﻿using System;
using Util;

namespace Utility
{


    public class AccessToken
    {
        public static string AccessTokenName = "access_token";
        public static string UserName = "user_name";
        /// <summary>
        /// 生成token
        /// </summary>
        /// <returns></returns>
        public static string GetAccessToken()
        {
            string str = Guid.NewGuid().ToString().ToUpper().Replace("-", "");

            return str;
        }
    }


    public class StringFormat
    {
        public static string FormatWeekName(int week)
        {
            string[] cnWeekDayNames = { "日", "一", "二", "三", "四", "五", "六" };
            return "周" + cnWeekDayNames[week];
        }
    }
    public class StaticVariables
    {
        public static string Aspnetcore_Environment = "";
    }


}

